<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<#include "/jspgou_sys/head.html"/>
<script type="text/javascript">
function getTableForm() {
	return document.getElementById('tableForm');
}
</script>
</head>
<body>
<div class="body-box">
<div class="rhead">
	<div class="rpos"><@s.m "global.position"/>: 销售统计 - 库存预警 </div>
		
	<form class="ropt">
		<input type="radio" name="status" <#if status==1>checked="checked"</#if> value="1">提醒
		<input type="radio" name="status" <#if status==0>checked="checked"</#if> value="0">不提醒
		数量:<input type="text" name="count">
		<input type="submit" value="查找" onclick="this.form.action='v_productLack.do';"/>
	</form>
	<div class="clear"></div>
</div>
低于库存<#if count??>${count!}<#else>5</#if>的款式!
<form id="tableForm" method="post">
<input type="hidden" name="pageNo" value="${pageNo!}"/>
<input type="hidden" name="ctgId" value="${ctgId!}"/>
<input type="hidden" name="count" value="${count!}"/>
<input type="hidden" name="status" value="${status!}"/>
<@p.table listAction="v_productLack.do" value=pagination;fashion,i,has_next><#rt/>
	<@p.column title="<input type='checkbox' onclick='Pn.checkbox(\"ids\",this.checked)'/>" width="20">
		<input type='checkbox' name='ids' value='${fashion.id}'/><#t/>
	</@p.column><#t/>
	<#--<@p.column title="ID" width="20">${fashion.id}</@p.column>--><#t/>
	<@p.column code="product.name">${fashion.productId.name}</@p.column><#t/>
	<@p.column code="product.code">${fashion.productCode}</@p.column><#t/>
	<@p.column code="product.category">${fashion.productId.category.name}</@p.column><#t/>
	<@p.column code="product.type">${fashion.productId.type.name}</@p.column><#t/>
	<@p.column code="销售量">${fashion.saleCount}</@p.column><#t/>
	<@p.column code="库存">${fashion.stockCount}</@p.column><#t/>
	<@p.column code="global.operate" align="center">
		<#if status==1>
		<a href="o_updateRemind.do?fashionid=${fashion.id}&status=0">不再提醒</a>
		<#else>
		<a href="o_updateRemind.do?fashionid=${fashion.id}&status=1">提醒</a>
		</#if>
	</@p.column><#t/>
</@p.table>
</form>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>